﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 设备管理货位
    /// </summary>
    public DbSet<POWcsEquipLocHold> WcsEquipLocHolds { get; set; }
}

/// <summary>
/// 设备管理货位
/// 表[wcs_equip_loc_hold]
/// </summary>
[Table("wcs_equip_loc_hold")]
public class POWcsEquipLocHold
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wcs_equip_loc_hold.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long Id { get; set; }
    /// <summary>
    /// [wcs_equip_loc_hold.area_id)]
    /// </summary>
    [Column("area_id")]
    public long? AreaId { get; set; }
    /// <summary>
    /// 设备Id
    /// [wcs_equip_loc_hold.equip_id)]
    /// </summary>
    [Column("equip_id")]
    public long? EquipId { get; set; }
    /// <summary>
    /// 货位Id
    /// [wcs_equip_loc_hold.loc_id)]
    /// </summary>
    [Column("loc_id")]
    public long? LocId { get; set; }
    /// <summary>
    /// 关系分，分数越高约远
    /// [wcs_equip_loc_hold.relate_score)]
    /// </summary>
    [Column("relate_score")]
    public int? RelateScore { get; set; }
    /// <summary>
    /// 创建时间
    /// [wcs_equip_loc_hold.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [wcs_equip_loc_hold.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [wcs_equip_loc_hold.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
}
